import pandas as pd
from flask import Flask, render_template

df = pd.read_csv("data/中国疫情.csv")
area = df['地区'].tolist()
all = df['累计'].tolist()

app = Flask(__name__)


@app.route("/")
def index():
    # 渲染模板的同时将数据传输进去
    return render_template("地图和热力图.html", area=area, all=all)


if __name__ == '__main__':
    app.run(debug=True)
